using System;
using System.Collections.Generic;
using System.Text;

namespace PSE.Hosting.ServiceHoster.Services
{
    internal static class PackageTranslation
    {
        public static DataContracts.Package ToDataContract(Entities.Package from)
        {
            DataContracts.Package to = new DataContracts.Package();
            to.Id = from.Id;
            to.Start = from.Start;
            to.Name = from.Name;
            to.Domain = from.Domain;
            to.UserName = from.UserName;

            return to;
        }
    }
}
